import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/dataDictoryFile/getListPage',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/dataDictoryFile/save',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/dataDictoryFile/edit',
    method: 'post',
    data
  })
}

export function remove(data) {
  return request({
    url: '/dataDictoryFile/delete',
    method: 'post',
    params: data
  })
}

export function getHistryList(data) {
  return request({
    url: '/dataDictoryFile/getHistryList',
    method: 'post',
    params: data
  })
}

export function getInfo(data) {
  return request({
    url: '/dataDictoryFile/getInfo',
    method: 'post',
    params: data
  })
}

export function getFileList(data) {
  return request({
    url: '/dataDictoryFile/getFileList',
    method: 'post',
    params: data
  })
}

export function downloadWord(data) {
  return request({
    url: '/dataDictoryFile/downloadWord',
    method: 'get',
    params: data
  })
}

export function getMdTemplate() {
  return request({
    url: '/dataDictoryFile/getMdTemplate',
    method: 'post'
  })
}
